package com.longagoewk.springboot.service;

import com.longagoewk.springboot.dao.ExplainDao;
import com.longagoewk.springboot.entity.ExplainBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExplainService {

    @Autowired
    ExplainDao explainDao;

    public ExplainBean getExplain(ExplainBean explainBean){
        return explainDao.getExplain(explainBean);
    }

    public List<ExplainBean> getExplainList(ExplainBean explainBean){
        return explainDao.getExplainList(explainBean);
    }

    public boolean updataExplain(ExplainBean explainBean){
        return explainDao.updataExplain(explainBean);
    }

    public boolean addExplain(ExplainBean explainBean){
        return explainDao.addExplain(explainBean);
    }

    public boolean deleteExplain(ExplainBean explainBean){
        return explainDao.deleteExplain(explainBean);
    }

}
